<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX" xmlns:epm="http://www.bp.com.cn/epm">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
	</w:head>
	<w:page title="接警">
		<layout:panel border="false" autoHeight="true" styleClass="k4-form" autoWidth="true">
			<w:form groupId="1" clientValidate="true">
				<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-form-toolbar">
					<w:toolBar>
						<w:button label="保存" id="save"
							image="#{facesContext.externalContext.requestContextPath}/images/save.gif" />
						<w:separator />
						<w:button label="取消"
							image="#{facesContext.externalContext.requestContextPath}/images/cancel.gif"
							onclick="javascript:closeCenterLayoutTab('addEventTab')" alwaysSubmit="false" />
					</w:toolBar>
				</layout:panel>
				<layout:panelGrid cellpadding="0" cellspacing="0" border="1" styleClass="k4-form-grid"
					columns="4">
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="事件名称"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:textField id="eventName" styleClass="k4-form-textfield" required="true"
							requiredMessage="事件名称不能为空"></w:textField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="发生地点"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:textField id="eventAddress" styleClass="k4-form-textfield" required="true"
							requiredMessage="发生地点不能为空"></w:textField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="事件状态"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="eventStatus" styleClass="k4-form-comofield" editable="false" required="true" allowBlank="false" jsvar="stairType">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="事件级别"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="eventLevel" styleClass="k4-form-comofield" editable="false">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="适用范围"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="eventRangeB" required="true" allowBlank="false" styleClass="k4-form-comofield" editable="false">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="2">
						<w:combo id="eventRangeS" required="true" allowBlank="false" styleClass="k4-form-comofield" editable="false">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="接报时间"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:dateTimeField id="eventReportDate" styleClass="k4-form-datefield"></w:dateTimeField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="发生时间"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:dateTimeField id="eventHappenDate" styleClass="k4-form-datefield"></w:dateTimeField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="创建者"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<epm:personSingleSelect idField="eventCreateUser" nameField="eventCreateUserName"
							styleClass="k4-form-textfield"></epm:personSingleSelect>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="创建时间"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:dateTimeField id="eventCreateDate" styleClass="k4-form-datefield"></w:dateTimeField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="备注"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="3">
						<w:simpleHtmlEditor height="200" width="600" id="eventRemark"
							fontFamilies="['宋体','隶书','楷体','仿宋','黑体','华文彩云','华文琥珀','幼圆','Times New Roman','微软雅黑','楷体_GB2312','仿宋_GB2312']"></w:simpleHtmlEditor>
					</layout:cell>
				</layout:panelGrid>
			</w:form>
		</layout:panel>
	</w:page>
</f:view>